import requestManager from "../utils/request.util";
import type { LoginRes } from "../../types/login.type";

export const loginWechat = (params: { code: string }) => {
  return requestManager.request<LoginRes>({
    url: "/login/wechat",
    method: "POST",
    data: params,
  });
};

